<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <!-- 标准的理想视口 -->
  <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
  <title>商品列表</title>
  <!-- 1 引入 4个 样式文件 -->
  <link rel="stylesheet" href="../lib/mui/css/mui.css">
  <link rel="stylesheet" href="../lib/fontawesome/css/font-awesome.css">
  <link rel="stylesheet" href="../css/common.css">
  <link rel="stylesheet" href="../css/goods_list.css">
</head>

<body class="">
  <!-- 主要用在显示网页内容 -->
  <div class="pyg_view">
    <!--头部搜索 -->
   <header class="pyg_search"></header>
   <!-- 排序栏 -->
   <div class="sort_bar"></div>
   
    <!-- 主要内容 -->
    <div class="pyg_main">
      <div>
        <ul class="goods_wrap">
        
         
        </ul>
      </div>
    </div>
    </div>

    <footer class="pyg_footer">
      <a href="javascript:;">
        <span class="fa fa-home"></span>
        <div>首页</div>
      </a>
      <a href="./pages/category.html">
        <span class="fa fa-list-ul"></span>
        <div>分类</div>
      </a>
      <a href="javascript:;">
        <span class="fa fa-shopping-cart"></span>
        <div>首页</div>
      </a>
      <a href="javascript:;">
        <span class="fa fa-user"></span>
        <div>首页</div>
      </a>
    </footer>
  </div>
</body>

<!-- 模板引擎 -->
<!-- 商品的列表 -->
<script id="mainTpl" type="text/html">
  {{each data  value}}
  <li>
    <a href="goods_detail.html?goods_id={{value.goods_id}}">
      <!-- 左侧的图片 -->
      <div class="goods_img">
        <img src="{{value.goods_small_logo||'../static/images/lbxx.jpg'}}" alt="">
      </div>
      <!-- 右侧 -->
      <div class="goods_info">
        <div class="goods_name">
            {{value.goods_name}}
          </div>
        <div class="goods_price">￥{{value.goods_price}}</div>
      </div>
    </a>
  </li>
  {{/each}}
  </script>

<!-- 模板引擎 -->


<!-- 2 引入js文件 -->
<script src="../lib/mui/js/mui.js"></script>
<script src="../lib/zepto/zepto.js"></script>
<script src="../lib/arttemplate/template-web.js"></script>
<script src="../js/common.js"></script>
<script src="../js/goods_list.js"></script>

</html>